package com.lening.provider.service.impl.OwnersRepair;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseServiceImpl;
import com.lening.provider.dao.OwnersRepair.OwnerRepairMainTableDAO;
import com.lening.provider.dto.OwnersRepair.OwnerRepairMainTableDTO;
import com.lening.provider.po.OwnersRepair.OwnerRepairMainTablePO;
import com.lening.provider.service.OwnersRepair.OwnerRepairMainTableService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 刘政华
 * @datetime 2024/6/5 11:54
 * @description 类对象
 */
@Slf4j
@Service
public class OwnerRepairMainTableServiceImpl extends BaseServiceImpl<OwnerRepairMainTableDAO, OwnerRepairMainTablePO, OwnerRepairMainTableDTO> implements OwnerRepairMainTableService {

    @Resource
    private OwnerRepairMainTableDAO ownerRepairMainTableDAO;

    @Override
    public Page<OwnerRepairMainTableDTO> ownerRepairList(Page<OwnerRepairMainTableDTO> ownerRepairMainTableDTO) {
        Page<OwnerRepairMainTableDTO> ownerRepairPage = ownerRepairMainTableDAO.getList(ownerRepairMainTableDTO);
        return ownerRepairPage;
    }

    @Override
    public long count() {
        return ownerRepairMainTableDAO.count();
    }

    @Override
    public Page<?> page(OwnerRepairMainTableDTO ownerRepairMainTableDTO) {
        return this.baseMapper.getList(ownerRepairMainTableDTO);
    }
}
